package core;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 定义接口类，存储接口信息：标题，名称，描述，接口参数组合
 * 
 * @author Bob
 *
 */
public class ApiClass {
	private String apiTitle;
	private String apiName;
	private String apiDescription;
	private Map<String, List<String>> apiParamGroup;

	public ApiClass() {
		apiParamGroup = new HashMap<>();
		apiName = null;
		apiDescription = null;
		apiTitle = null;
	}

	public ApiClass(String title, String name, String desc) {
		this.setApiDescription(desc);
		this.setApiName(name);
		this.setApiTitle(title);
		apiParamGroup = new HashMap<>();
	}

	public String getApiTitle() {
		return apiTitle;
	}

	public void setApiTitle(String apiTitle) {
		this.apiTitle = apiTitle;
	}

	public String getApiName() {
		return apiName;
	}

	public void setApiName(String apiName) {
		this.apiName = apiName;
	}

	public String getApiDescription() {
		return apiDescription;
	}

	public void setApiDescription(String apiDescription) {
		this.apiDescription = apiDescription;
	}

	public Map<String, List<String>> getApiParamGroup() {
		return apiParamGroup;
	}

	public void appendApiParamGroup(String param, List<String> paramGroup){
		apiParamGroup.put(param, paramGroup);
	}

}
